package com.zzty.txj1.service.impl;

import com.zzty.txj1.dao.SelfExamTransactionDao;
import com.zzty.txj1.dao.TeamExamTransactionDao;
import com.zzty.txj1.entity.SelfExamTransaction;
import com.zzty.txj1.entity.TeamExamTransaction;
import com.zzty.txj1.service.SelfExamTransactionService;
import com.zzty.txj1.service.TeamExamTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeamExamTransactionServiceImpl implements TeamExamTransactionService {
    @Autowired
    TeamExamTransactionDao teamExamTransactionDao ;
    @Override
    public TeamExamTransaction checkFirstLogIn(TeamExamTransaction teamExamTransaction) {
        TeamExamTransaction teamExamTransaction1=teamExamTransactionDao.checkFirstLogIn(teamExamTransaction);
        return teamExamTransaction1;
    }

    @Override
    public Integer initTeamExamTransaction(TeamExamTransaction teamExamTransaction) {
        Integer flag=teamExamTransactionDao.initTeamExamTransaction(teamExamTransaction);
        return flag;
    }

    @Override
    public String getStartTime(TeamExamTransaction teamExamTransaction) {
        String startTime=teamExamTransactionDao.getStartTime(teamExamTransaction);
        return startTime;
    }

    @Override
    public Integer updateUrlSpendTime(TeamExamTransaction teamExamTransaction) {
        Integer flag=teamExamTransactionDao.updateUrlSpendTime(teamExamTransaction);
        return flag;
    }

    @Override
    public Integer getId(String name) {
        Integer id = teamExamTransactionDao.getId(name);
        return id;
    }
}
